//
//  UserInfoManager.m
//  BobNews
//
//  Created by lanou3g on 16/5/5.
//  Copyright © 2016年 YJC. All rights reserved.
//

#import "UserInfoManager.h"

@implementation UserInfoManager
+(instancetype)shareManager {
    static UserInfoManager *manager = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manager = [UserInfoManager new];
    });
    return manager;
}
- (void)loginWithUserDict:(NSDictionary *)dict {
    if (dict) {
        [self setValuesForKeysWithDictionary:dict];
    }
}
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    [[NSUserDefaults standardUserDefaults]setValue:value forKey:key];
    [[NSUserDefaults standardUserDefaults]synchronize];
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}
@end
